<?php
//рус
include_once(_APP_PATH. 'modules/admin/controllers/blogs/blogs_admin_http.php');
class blogs_admin_http_ajax extends blogs_admin_http
{
    /**
		экшен по-умолчанию
	*/
    public function PrAction ()
    {

    }

    protected function GetOnlyRightBlog()
    {
		$blog = $this->GetBlogFromQueryId();  
        if (!$blog) 
    	{
	        $obj = SysLoader::GetModResponse();
			$obj->SetStatus(MR_STATUS_ERROR);
			$obj->SetMessage('Блог не найден');
	
	        $this->Response()->SetBody($obj);  
    	}	

    	return $blog;
    }    
    
    public function media_add_articlePrAction()
    {
    	$blog = $this->GetOnlyRightBlog(); 
		if (!$blog) return;
		
    	$this->MediaForArticle($blog); 	
    }    
}